//
//  AudioExampleAppDelegate.h
//  Google Ads iPhone publisher SDK.
//
//  Copyright Google Inc 2009. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

#import "GADAdViewController.h"
#import "GADAdSenseAudioParameters.h"

@interface AudioExampleAppDelegate : NSObject <
    UIApplicationDelegate,
    GADAdViewControllerDelegate,
    AVAudioPlayerDelegate> {
  UIWindow *window_;
  UIViewController *mainViewController_;
  UILabel *nowPlayingText_;
  GADAdViewController *adViewController_;
  AVAudioPlayer *audioPlayer_;
  BOOL adLoaded_;  // Has the ad succesfully loaded
  BOOL songDone_;  // Has the song finished playing
  BOOL adLoadFailed_;  // Did the attempt to load the ad fail
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UIViewController *mainViewController;
@property (nonatomic, retain) IBOutlet UILabel *nowPlayingText;

@end
